<%--
  Created by IntelliJ IDEA.
  User: yejf
  Date: 2017/1/12
  Time: 16:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>ajax demo</title>
</head>
<body>
  <h2>Spring MVC中控制器处理AJAX请求</h2>
  <hr/>
  <p>
  <label for="name">用户名：</label>
  <input type="text" name="name" id="name" maxlength="15" value="">
  <span id="show"></span>
  </p>

  <p>
  <input type="button" id="btn1" value="获取自已转换的JSON数据">
  <div id="showData1"></div>
  </p>

  <p>
    <input type="button" id="btn2" value="获取spring转换的JSON数据">
  <div id="showData2"></div>
  </p>

  <p>
    <input type="button" id="btn3" value="获取spring转换的xml数据">
  <div id="showData3"></div>
  </p>
</body>
<!-- 导入外部的js 文件 -->
<script type="text/javascript" src="${path}/js/ajax.js"></script>
</html>
